﻿'use strict'

var app = angular.module('BlogApp', ['ngRoute']);

app.config(['$routeProvider', function ($routeProvider) {
    $routeProvider
    .when('/list', {
        templateUrl: 'app/Views/BlogListView.html',
        controller: 'BlogListController'
    })
    .when('/detail', {
        templateUrl: 'app/Views/BlogDetailView.html',
        controller: 'BlogDetailController'
    })
    .when('/create', {
        templateUrl: 'app/Views/BlogCreateView.html',
        controller: 'BlogCreateController'
    })
    .otherwise({
        redirectTo: '/list'
    });
}]);

